home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ccdl151s.zip / SOURCE / FATAL.C < prev    next >
C/C++ Source or Header  |  1997-03-15  |  1KB  |  40 lines

  1. /*
  2.  * 68K/386 32-bit C compiler.
  3.  *
  4.  * copyright (c) 1997, David Lindauer
  5.  * 
  6.  * This compiler is intended for educational use.  It may not be used
  7.  * for profit without the express written consent of the author.
  8.  *
  9.  * It may be freely redistributed, as long as this notice remains intact
  10.  * and either the original sources or derived sources 
  11.  * are distributed along with any executables derived from the originals.
  12.  *
  13.  * The author is not responsible for any damages that may arise from use
  14.  * of this software, either idirect or consequential.
  15.  *
  16.  * v1.35 March 1997
  17.  * David Lindauer, gclind01@starbase.spd.louisville.edu
  18.  *
  19.  * Credits to Mathew Brandt for original K&R C compiler
  20.  *
  21.  */
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #include <stdarg.h>
  25. #include "cmdline.h"
  26.  
  27. /*
  28.  *
  29.  * Print a fatal error and exit
  30.  */
  31. void fatal( char *fmt, ... )
  32. {
  33.   va_list argptr;
  34.  
  35.   va_start( argptr, fmt);
  36.   printf( "Fatal error: ");
  37.   vprintf( fmt, argptr);
  38.   va_end(argptr);
  39.   exit(1);
  40. }